package com.dwarfeng.capacitychecker.impl.handler.driver;

import com.dwarfeng.capacitychecker.impl.handler.DriverSupporter;
import org.springframework.stereotype.Component;

/**
 * 固定间隔驱动支持器。
 *
 * @author DwArFeng
 * @since 1.0.0
 */
@Component
public class FixedDelayDriverSupporter implements DriverSupporter {

    public static final String SUPPORT_TYPE = "fixed_delay_driver";

    @Override
    public String provideType() {
        return SUPPORT_TYPE;
    }

    @Override
    public String provideLabel() {
        return "固定间隔驱动器";
    }

    @Override
    public String provideDescription() {
        return "根据指定的间隔定时驱动，如果某一次驱动晚于间隔，则后续驱动的时间相应的顺延。";
    }

    @Override
    public String provideExampleContent() {
        return "60000";
    }
}
